 /**
 * 子模块路由
 * DHpai
 */

var router = function($urlRouterProvider, $stateProvider){

 	$stateProvider

    //政策及法规维护
    .state('app.policyList', {
        url: "/policyrule/list",
        views: {
            'main@' : {
                template : require('./views/policyRuleList.html'),
                controller : 'policyRuleList',
            }
        },
        resolve:{
            
        }
    })

    //政策及法规奖励设置
    .state('app.attractSetting', {
        url: "/policy/set",
        views: {
            'main@' : {
                template : require('./views/policySet.html'),
                controller : 'policySet',
            }
        },
        resolve:{
            
        }
    })

    //企业申报
    .state('app.companyApply', {
        url: "/apply/list",
        views: {
            'main@' : {
                template : require('./views/applyList.html'),
                controller : 'applyList',
            }
        },
        resolve:{

        }
    })

    //企业审核
    .state('app.applyConfirm', {
        url: "/confirm/list",
        views: {
            'main@' : {
                template : require('./views/applyConfirm.html'),
                controller : 'applyConfirm',
            }
        },
        resolve:{
            deleteStr : function(attractTouristservice){
                return attractTouristservice.deleteStr();
            }
        }
    })

    //产品设定
    .state('app.productSetting', {
        url: "/product/list",
        views: {
            'main@' : {
                template : require('./views/productSettingList.html'),
                controller : 'productSettingList',
            }
        },
        resolve:{
            deleteStr : function(attractTouristservice){
                return attractTouristservice.deleteStr();
            }
        }
    })

    //补贴类型管理
    .state('app.policySubsidyType', {
        url: "/subsidy/list",
        views: {
            'main@' : {
                template : require('./views/policySubsidyType.html'),
                controller : 'policySubsidyType',
            }
        },
        resolve:{
            
        }
    })

    //游团信息审计
    .state('app.groupAudit', {
        url: "/audit/list",
        views: {
            'main@' : {
                template : require('./views/groupAudit.html'),
                controller : 'groupAudit',
            }
        },
        resolve:{
            str2Data : function(attractTouristservice){
                return attractTouristservice.str2Data();
            }
        }
    })

    //审计报告认定
    .state('app.auditReport', {
        url: "/audit/report",
        views: {
            'main@' : {
                template : require('./views/auditReport.html'),
                controller : 'auditReport',
            }
        },
        resolve:{
            str2Data : function(attractTouristservice){
                return attractTouristservice.str2Data();
            }
        }
    })

    //旅行社开团信息审计
    .state('app.subsidyUsed', {
        url: "/subsidy/used",
        views: {
            'main@' : {
                template : require('./views/subsidyUsed.html'),
                controller : 'subsidyUsed',
            }
        },
        resolve:{
            
        }
    })

    //旅游团信息查询
    .state('app.groupSummary', {
        url: "/group/list",
        views: {
            'main@' : {
                template : require('./views/groupSummary.html'),
                controller : 'groupSummary',
            }
        },
        resolve:{
            
        }
    })

    //旅游团信息查询
    .state('app.groupInfo', {
        url: "/group/info",
        views: {
            'main@' : {
                template : require('./views/groupInfoList.html'),
                controller : 'groupInfoList',
            }
        },
        resolve:{
            
        }
    })

    //游客信息查询
    .state('app.touristInformation', {
        url: "/tourist/list",
        views: {
            'main@' : {
                template : require('./views/touristList.html'),
                controller : 'touristList',
            }
        },
        resolve:{
            
        }
    })

    //电子票游客查询（散票）
    .state('app.touristInformations', {
        url: "/tourist/lists",
        views: {
            'main@' : {
                template : require('./views/touristLists.html'),
                controller : 'touristLists',
            }
        },
        resolve:{
            
        }
    })

    //游客信息查询
    .state('app.rewardList', {
        url: "/reward/list",
        views: {
            'main@' : {
                template : require('./views/rewardList.html'),
                controller : 'rewardList',
            }
        },
        resolve:{
            
        }
    })
    
    //景区查询
    .state('app.viewTicket', {
        url: "/view/list",
        views: {
            'main@' : {
                template : require('./views/productList.html'),
                controller : 'productList',
            }
        },
        resolve:{
            sale_type : function(){
                return 'J';
            }
        }
    })
    
    //酒店查询
    .state('app.hotalList', {
        url: "/hotal/list",
        views: {
            'main@' : {
                template : require('./views/productList.html'),
                controller : 'productList',
            }
        },
        resolve:{
            sale_type : function(){
                return 'H';
            }
        }
    })


	;

};

module.exports = router;